package com.ypz.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ypz.reggie.dto.DishDto;
import com.ypz.reggie.entity.Dish;

public interface DishService extends IService<Dish> {
    /**
     * 新增菜品同时保存DishFlavor，同时操作两张表
     * @param dishDto
     */
    public void saveWithFlavor(DishDto dishDto);

    /**
     * 更具id查询菜品信息和口味
     * @param id
     * @return
     */
    public  DishDto getByIdWithFlavor(Long id);

    /**
     * 更新dish和dish_flavor
     * @param dishDto
     */
    public void modifyWithFlavor(DishDto dishDto);
}
